package com.github.ghsea.scheduler.dto;

import java.io.Serializable;

/**
 * @author guhai
 * @since 2021/6/17 22:10
 */
public class TaskExecutionEvent implements Serializable {

    private int timerNum;

    private int loop;

    private int taskCount;

    private long exeTime;

    private int interval;

    private String bizCode;

    public int getTimerNum() {
        return timerNum;
    }

    public TaskExecutionEvent setTimerNum(int timerNum) {
        this.timerNum = timerNum;
        return this;
    }

    public int getLoop() {
        return loop;
    }

    public TaskExecutionEvent setLoop(int loop) {
        this.loop = loop;
        return this;
    }

    public int getTaskCount() {
        return taskCount;
    }

    public TaskExecutionEvent setTaskCount(int taskCount) {
        this.taskCount = taskCount;
        return this;
    }


    public long getExeTime() {
        return exeTime;
    }

    public TaskExecutionEvent setExeTime(long exeTime) {
        this.exeTime = exeTime;
        return this;
    }

    public int getInterval() {
        return interval;
    }

    public TaskExecutionEvent setInterval(int interval) {
        this.interval = interval;
        return this;
    }

    public String getBizCode() {
        return bizCode;
    }

    public TaskExecutionEvent setBizCode(String bizCode) {
        this.bizCode = bizCode;
        return this;
    }

    @Override
    public String toString() {
        return "TaskExecutionEvent{" +
                "timerNum=" + timerNum +
                ", loop=" + loop +
                ", taskCount=" + taskCount +
                ", exeTime=" + exeTime +
                ", interval=" + interval +
                ", bizCode='" + bizCode + '\'' +
                '}';
    }
}
